// void, Obj This

Unit this;
int r;

Sleep(860+rand(GetConst("RandTimeStart"))+GetConst("AddTimeStart"));

this = This.AsUnit();

while(!.IsValid) Sleep(10000); 

while(.IsValid){ 
	if(.player == 15){
	    .SetPlayer(16);        
	    if(.class == "TraderRescue"){
	        r = rand(2);
	        if(r == 1)
	            .AsWagon.SetGold(rand(1000)+100);
	        else
	            .AsWagon.SetFood(rand(2000)+100);
	    }
	}
    Sleep(100000); 
}        
return;
